package com.naiterui.ehp.bs.consult.feign;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

import com.naiterui.ehp.bp.bo.im.MsgSendParamBO;
import com.naiterui.ehp.bp.support.config.FeignConfiguration;
import com.naiterui.ehp.bp.support.exception.BusinessException;

/**
 * @author guoyongxiang
 * @date 2019-07-11 15:26
 * @since 1.0.0
 */
@FeignClient(name = "vdIm", url = "${ehp.domain.im}", configuration = FeignConfiguration.class)
public interface ImFeginClient {

    /**
     * 发送系统消息
     *
     * @param msgSendParamBO
     * @return
     * @throws BusinessException
     */
    @PostMapping("inner/sys/message/send")
    void sendSysMessage(@RequestBody MsgSendParamBO msgSendParamBO) throws BusinessException;

}
